package cn.itsource.org.mapper;

import cn.itsource.org.domain.Employee;
import cn.itsource.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper {
     List<Employee> findAll();

     Employee findOne(Long id);

     void add(Employee employee);

     void update(Employee employee);

     void delete(Long id);

     //批量删除
     void patchdel(Long[] ids);

     Integer queryCount(EmployeeQuery employeeQuery);
     List<Employee> queryData(EmployeeQuery employeeQuery);

    void addEmployeeRole(Employee employee);

     void deleteEmployeeRole(Long id);

    Employee findByLogininfoId(Long id);

    List<Employee> findEmployeeByShopId(Long shopId);

}
